package net.jcip.examples.counters;

public class UnsafeCounter implements LongCounter {

    private long counter;

    @Override
    public void reset() {
        counter = 0;
    }

    @Override
    public void increment() {
        ++counter;
    }

    @Override
    public long getCounter() {
        return counter;
    }
}
